<?php

require_once('Html_Strict.php');

class Simple_Page_View extends Html_Strict_View {
	public function head()
	{
		parent::head();
		echo "<style type='text/css'>";
		$this->style();
		echo "</style>";
	}
	
	public function body()
	{
		?><div id="right_block"><?php $this->right(); ?></div>
		<h1>Hello World!</h1><?php
		$this->link();
	}
	
	public function link() {
		echo html::anchor('inherit_view_demo/another', 'Go to another view');
	}
	
	public function style()
	{
	?>
	#right_block {
		float: right;
		width: 30%;
		background: #62C158;
		color: white;
		padding: 40px 10px;
	}	<?php
	}
	
	public function right()
	{
		echo "The one content";
	}
}